using Microsoft.EntityFrameworkCore;
using Demo.Models;

namespace Demo.Db
{
    public class DemoDb : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder builder)
        {
            var str = "server=.;database=Demo;uid=sa;pwd=123456";
            builder.UseSqlServer(str);

        }
        public DbSet<Product> Product {get;set;}
        public DbSet<Category> Category {get;set;}
    }
}